//BikeTest.java
package com.ylaihui.oop2;

class Bike{
	String name;
	double weight = 10.2;
	
	public Bike(){}
	public Bike(double w){
		weight = w;
	}
	void setWeight(double w){
		weight = w;
	}
}

public class BikeTest {
	public static void main(String[] args) {
		Bike b = new Bike();
		System.out.println(b.weight);
		
		Bike b1 = new Bike(22.3);
		System.out.println(b1.weight);

		b1.setWeight(33.3);
		System.out.println(b1.weight);
	}
}
